# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class CreateLiveToVodTaskRequestObject(object):

    def __init__(self, title, fileName, publishDomain, appName, streamName, recordTimes, recordFileType, fileSize=None, coverUrl=None, description=None, categoryId=None, tags=None, transcodeTemplateGroupId=None, transcodeTemplateIds=None, watermarkIds=None, taskExternalId=None, priority=None):
        """
        :param title:  视频标题
        :param fileName:  文件名称
        :param fileSize: (Optional) 文件大小
        :param coverUrl: (Optional) 封面地址
        :param description: (Optional) 视频描述
        :param categoryId: (Optional) 分类ID
        :param tags: (Optional) 视频标签集合
        :param transcodeTemplateGroupId: (Optional) 转码模板组ID。若此字段不为空，则将以模板组方式提交转码作业，transcodeTemplateIds字段将被忽略。
        :param transcodeTemplateIds: (Optional) 转码模板ID集合
        :param watermarkIds: (Optional) 水印ID集合
        :param publishDomain:  推流域名
        :param appName:  应用名称
        :param streamName:  流名称
        :param recordTimes:  录制时间段集合
- 支持自定义1-10个时间段,拼接成一个文件
- 每个时间段不小于10s
- 总跨度不超过12小时
- 时间段按升序排列且无重叠

        :param recordFileType:  录制文件类型:
- 取值: ts, flv, mp4
- 不区分大小写

        :param taskExternalId: (Optional) 直播录制任务外键
        :param priority: (Optional) 任务优先级:
- 取值: low, medium, high
- 不区分大小写

        """

        self.title = title
        self.fileName = fileName
        self.fileSize = fileSize
        self.coverUrl = coverUrl
        self.description = description
        self.categoryId = categoryId
        self.tags = tags
        self.transcodeTemplateGroupId = transcodeTemplateGroupId
        self.transcodeTemplateIds = transcodeTemplateIds
        self.watermarkIds = watermarkIds
        self.publishDomain = publishDomain
        self.appName = appName
        self.streamName = streamName
        self.recordTimes = recordTimes
        self.recordFileType = recordFileType
        self.taskExternalId = taskExternalId
        self.priority = priority
